package com.allen.dubbo.demo.web;

import org.dubbo.demo.api.DubboDemoService;
import org.dubbo.demo.api.bean.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/person")
public class PersonController {

	@Autowired
	DubboDemoService demoService;

	@RequestMapping("/login")
	public void login() {
		Person person = new Person();
		person.setId("id");
		person.setName("name");
		demoService.login(person);
	}
}
